<?php
/*
 * @Author: your name
 * @Date: 2020-05-22 10:37:06
 * @LastEditTime: 2020-05-22 15:48:18
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /v3/application/adminapiv3/controller/attackLogManage/cloudSafeLogManage/CloudSafeLogController.php
 */ 

namespace app\adminapiv3\controller\attackLogManage\cloudSafeLogManage;

use app\adminapiv3\controller\Base;
use app\adminapiv3\service\attackLogManage\cloudSafeLogManage\CloudSafeService;

class CloudSafeLogController extends Base
{
    /**
     * @name: 列表
     * @Param: 
     * @Description: 
     * @Author: foo
     * @Date: 2020-05-22 13:56:39
     */
    function list ()
    {
        $input = $this->filterInput('data', 'get', []);
        $CloudSafeService = new CloudSafeService;
        $data = $CloudSafeService->list($input);

        $this->jsonOutPut($data);
    }


    /**
     * @name: 批量删除
     * @Param: 
     * @Description: 
     * @Author: foo
     * @Date: 2020-05-22 10:54:26
     */
    function bulkDelete ()
    {
        global $logContent;
        $logContent = '批量删除云安全日志';

        $id_s = $this->filterInput('id*', 'post');//删除id

        $CloudSafeService = new CloudSafeService();
        $CloudSafeService->delete($id_s);

        $this->jsonOutPut();
    }

    /**
     * @name: 清空所有
     * @Param: 
     * @Description: 
     * @Author: foo
     * @Date: 2020-05-22 10:54:45
     */
    function clear ()
    {
        global $logContent;
        $logContent = '清空云安全日志';

        $CloudSafeService = new CloudSafeService();
        $CloudSafeService->clear();

        $this->jsonOutPut();
    }
    
}